package com.neuedu.corejava.jdbc.bean;
import java.util.Date;

/**
 * 
 * 使用面向对象的编程思想，面向数据库的表名设计java数据实体类
 * 编写一个类与数据库的表格形成对应关系：类名与表名对应，类的属性与表的列对应（名称对名称，数据类型对应数据类型）
 * 
 * @author admin
 *
 */
public class Users {
	
	//用户编号
	private int id;
	//用户账号
	private String name;
	//年龄
	private int age;
	//出生日期
	private Date birthDate;
	
	public Users() {
		super();
	}
	public Users(int id, String name, int age, Date birthDate) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.birthDate = birthDate;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Date getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	
	
	
}
